import { BrowserRouter } from "react-router-dom";
import { ConfigProvider } from "antd";
import zhCN from "antd/lib/locale/zh_CN";
import Router from "@/routes";
import AuthRouter from "@/routes/utils/AuthRouter";

export default () => {
	return (
		<BrowserRouter>
			<ConfigProvider
				locale={zhCN}
				theme={{
					components: {
						Table: {
							headerBg: "#F3F4F7",
							rowHoverBg: "#F7F7F7",
							borderColor: "#E2E2E2"
						}
					}
				}}
			>
				<AuthRouter>
					<Router />
				</AuthRouter>
			</ConfigProvider>
		</BrowserRouter>
	);
};
